import React, { memo } from 'react'
import { NavLink } from 'react-router-dom';
import { SingrHeaderWrapper } from './style'

export default memo(function SingrHeader(props) {

    const {title, isShowLink, link} = props;

    return (
        <SingrHeaderWrapper>
            <div>{title}</div>
            {
                isShowLink ? <NavLink to={link} className="cat-all">查看全部 &gt;</NavLink> : null
            }
        </SingrHeaderWrapper>
    )
})
